<template>
  <div class="detail-page">
    <el-page-header  @back="$router.back()" />
    <el-card v-if="detail" class="mt-4">
      
      <template #header></template>

<!-- {{ detail.orderComment.orderNo }} -->


    </el-card>
    <el-empty v-else description="加载中…" />
  </div>
</template>







<script setup>
import { useRoute } from 'vue-router'
import { onMounted, ref } from 'vue'
import { getReviewDetail } from '@/api/order'
import { ElMessage } from 'element-plus'
const route = useRoute()    
const id = ref(route.params.id) 
const orderDetail   = ref(null) // 订单的详细信息
const reviewList = ref ([]) // 评论列表
const loading   = ref(false)
const errorMsg  = ref('')

onMounted(() => fetchDetail(id.value))
</script>
